package com.binge.spring.aop.service;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import java.util.List;

@Data
@Slf4j
@Repository
public class AopDaoA {

    private JdbcTemplate jdbcTemplate;



    public List<String> queryAll() {
        return jdbcTemplate.query("select * from bin_hello", (rs, rowNum) -> rs.getString("column_name"));
    }

}
